import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/tabbar/home.vue'
import Car from './views/tabbar/car.vue'
import Shop from './views/tabbar/shop.vue'
import NewList from './views/news/newList.vue'
import NewDetail from './views/news/newDetail.vue'
import ImgList from './views/img/imgList.vue'
import Imgdetail from './views/img/detail.vue'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/home', component: Home },
    { path: '/car', component: Car },
    { path: '/shop', component: Shop },
    { path: '/newList', component: NewList },
    { path: '/newdetail/:id', component: NewDetail },
    { path: '/imgList', component: ImgList},
    { path: '/imgdetail/:id', component: Imgdetail},
  ]
})
